package com.heima.feign.client;

import com.heima.feign.client.fallback.ApArticleClientFallback;
import com.heima.model.acticle.dtos.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-article",fallback = ApArticleClientFallback.class)
public interface ApArticleClient {

    @PostMapping("/after/one")
    ResponseResult save(@RequestBody ArticleDto dto);
}
